<?
include "../db_config.php";
$lat = $HTTP_GET_VARS['lat'];
$lng = $HTTP_GET_VARS['lng'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>


<script
src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAAi-Dpl_qi3OFGJJzCfeNcbxTn_P0LWb5CS6SsDLJvNWbX3M0V8xSVdFqeOvEljtHO8hKswoV95X1ZjA"
type="text/javascript"></script>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Korea Subway Chaehyun Lee</title>
<script type="text/javascript">
function calculate()
{
	var xmlhttp = GXmlHttp.create();
	var url = "calculateTrainPos.php";
	xmlhttp.open('GET', url, true);
	xmlhttp.onreadystatechange = function()
	{
		if(xmlhttp.readyState==4)
		{
			var d= xmlhttp.responseText;
			document.getElementById("data").innerHTML = d;
			window.setTimeout("calculate()", d);
		}
	}
	xmlhttp.send(null);

}
function refresh()
{
	location.reload(true);
}

window.setTimeout("calculate()", 1000);
window.setTimeout("refresh()", 10*60*1000);
</script>

</head>
<body >
<div id=data></div>
</body>
</html>

				
